<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>账号充值</title>
	<%@include file="../common/header.jsp" %>
</head>
<body>
<%@include file="../common/top.jsp" %>
<div class="section clearfix" style="margin-top: 10px;">
    <!--页面左边-->
   		<%@include file="left.jsp" %>
    <!--/页面左边-->

    <!--页面左边-->
    <div class="right-auto">
        <div class="bg-wrap" style="min-height:765px;">
            <div class="sub-tit " style="margin: 0px;">
                <a class="add" href="javascript:window.history.go(-1)"><i class="iconfont icon-reply"></i>返回</a>
                <ul>
                    <li class="selected">
                        <a href="javascript:;">账户充值</a>
                    </li>
                </ul>
            </div>

            <div class="form-box" style="margin: 0px;">
                <dl class="form-group">
                    <dt>账户余额：</dt>
                    <dd>
                        当前账户金额为：<b id="rechargeMoney">￥${sessionScope.vipUserSession.rechargeMoney}</b> 元
                    </dd>
                </dl>
                <dl class="form-group">
                    <dt>充值金额：</dt>
                    <dd>
                        <input name="orderAmount" id="order_amount" type="text" class="input code" > 元
                        <span class="Validform_checktip"></span></dd>
                </dl>
                <dl class="form-group">
                    <dd>
                        <input id="btnSubmit" onclick="submitRecharge()" name="btnSubmit" type="button" value="确认充值" class="submit">
                    </dd>
                </dl>
            </div>

        </div>
    </div>
    <!--/页面左边-->
</div>
<script type="text/javascript">
  function submitRecharge(){
	  $.post("${pathUrl }/home/center/submitRecharge",{orderAmount:$("#order_amount").val()},function(resultObj){
		  if(resultObj.status==1){
			  alert(resultObj.msg);
			  window.location.reload();
		  }else{
			  alert(resultObj.msg);
		  }
	  });
  }
</script>
</body>
</html>